package sk.naive.talker.persistence;

import sk.naive.talker.props.*;

/**
 * Extension of property store adding persistence related methods.
 *
 * @author <a href="mailto:virgo@naive.deepblue.sk">Richard "Virgo" Richter</a>
 * @version $Revision: 1.6 $ $Date: 2004/11/13 17:18:20 $
 */
public interface PersistentObject extends PropertyStore {
	/** Every persistent object should have its id. */
	public Integer getId();

	/**
	 * Used for setting value by persistence layer (loading from store).
	 *
	 * @param key
	 * @param value
	 * @throws PropertyStoreException
	 */
	void setStoredValue(String key, String value) throws PropertyStoreException;
}
